//
//  TMNetRequestItem.m
//  TaskManager
//
//  Created by vip on 16/5/18.
//  Copyright © 2016年 M&H. All rights reserved.
//

#import "TMNetRequestItem.h"
#import "GNRAPIConfig.h"

@implementation TMNetRequestItem

- (instancetype)init{
    if (self = [super init]) {
        _method = @"POST";
        _responseType = @"JSON";
    }
    return self;
}

- (NSString *)url{
    if (self.path) {
        _url = [NSString stringWithFormat:@"%@%@",kBaseUrl,_path];
    }else{
        _url = kBaseUrl;
    }
    return _url;
}

@end
